﻿using System;

namespace SnippetBox.Core.Data.Models {
    [Flags]
    public enum Role {
        /// <summary>
        /// Rank 1. A Member can set snippets as favorites, create and edit own snippets. 
        /// (CRUD for snippets can be turned off from the settings).
        /// </summary>
        Member,
        /// <summary>
        /// Rank 2. An Editor can edit all snippets and categories.
        /// </summary>
        Editor,
        /// <summary>
        /// Rank 3. An Admin can create and edit settings.
        /// </summary>
        Admin,
        /// <summary>
        /// Rank 4. A SuperAdmin can create and edit users.
        /// </summary>
        SuperAdmin
    }

    public static class Roles {
        /// <summary>
        /// Rank 1. A Member can set snippets as favorites, create and edit own snippets. 
        /// (CRUD for snippets can be turned off from the settings).
        /// </summary>
        public const string MEMBER = "Member";
        /// <summary>
        /// Rank 2. An Editor can edit all snippets and categories.
        /// </summary>
        public const string EDITOR = "Editor";
        /// <summary>
        /// Rank 3. An Admin can create and edit settings.
        /// </summary>
        public const string ADMIN = "Admin";
        /// <summary>
        /// Rank 4. A SuperAdmin can create and edit users.
        /// </summary>
        public const string SUPER_ADMIN = "SuperAdmin";
    }
}